package com.atguigu.Spring5.service;

import com.atguigu.Spring5.dao.UserDao;

/**
 * @Author xiao hu die
 * @Date 2022/3/28 23:05
 * @Version 1.0
 */
public class UserService {
    public UserService() {
        System.out.println("UserService的无参构造");
    }

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    public void add(){
        userDao.update();
    }
}
